package com.sz.lk.wingsystem.mvp.contract;

import com.sz.lk.wingsystem.bean.ManualResult;
import com.sz.lk.wingsystem.bean.WeightResult;
import com.sz.lk.wingsystem.mvp.BasePresenter;
import com.sz.lk.wingsystem.mvp.BaseView;
import com.sz.lk.wingsystem.mvp.OnNetRequestListener;

/**
 * author : liuke
 * e-mail : 1012459343@qq.com
 * date   : 2020/12/6 17:12
 * desc   :
 * version: 1.0
 */
public interface WeighContract {
    interface Model {
        /**
         * @param weightStr
         * @param listener
         */
        void WeighCartonNo(String weightStr, OnNetRequestListener<WeightResult> listener);

        void ManualNewReportInfo(String code, double weight, double volume,
                                 double length, double width, double height,
                                 OnNetRequestListener<ManualResult> listener);
    }

    interface view extends BaseView {
        /**
         * 重量上传获取体积换算
         *
         * @param bean
         */
        void onWeighCartonNoSuccess(WeightResult bean);

        void onManualNewReportInfoSuccess(ManualResult bean);
    }

    interface Presenter extends BasePresenter<WeighContract.view> {
        /**
         * 登录
         */
        void Get_WeighCartonNo(String weightStr);

        void Get_ManualNewReportInfo(String code, double weight, double volume,
                                     double length, double width, double height);
    }
} 